import request from '@/utils/request'

// 查询监控维护列表
export function getVideoMappingList (query) {
  return request({
    url: '/video/mappingList',
    method: 'get',
    params: query
  })
}

// 新增监控维护
export function addVideoMapping (data) {
  return request({
    url: '/video/mapping',
    method: 'post',
    data: data
  })
}

// 查看监控维护详情
export function detailVideoMapping (query) {
  return request({
    url: '/video/mapping',
    method: 'get',
    params: query
  })
}

// 修改监控维护
export function updateVideoMapping (data) {
  return request({
    url: '/video/mapping',
    method: 'put',
    data: data
  })
}

// 删除
export function deleteVideoMapping (id) {
  return request({
    url: '/video/mapping?id=' + id,
    method: 'delete',
    params: {}
  })
}
